﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.Commodity;

namespace FwProject.Commodity.Dto
{
    /// <summary>
    /// 商品评论的信息
    /// </summary>
    public class CommodityReviewsProductShopDto : EntityDto<Guid>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Display(Name = "用户编号")]
        public long UserId { get; set; }
        /// <summary>
        /// 评论用户名
        /// </summary>
        public string ReviceName { get; set; }

        public string UserFaceImage { get; set; }
       
        /// <summary>
        /// 评论内容
        /// </summary>
        /// <summary>
        /// 描述相符评分0-5
        /// </summary>
        [Display(Name = "评分")]
        public int CommentScore { get; set; }

        /// <summary>
        /// 服务评分0-5
        /// </summary>
        [Required]
        public int ServiceCommentScore { get; set; }

        public string RevicwsContent { get; set; }
        /// <summary>
        /// s商品图片途径
        /// </summary>
        public string ImagePic { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        [Display(Name = "商品编号")]
        public Guid ShopproductId { get; set; }
        /// <summary>
        /// 商品类别编号
        /// </summary>
        [Display(Name = "商品分类")]
        public Guid ShopTypeid { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required]
        [Display(Name = "商品名称")]
        public string ProductName { get; set; }
        /// <summary>
        /// 市场售价
        /// </summary>
        [Required]
        [Display(Name = "销售价")]
        public decimal SpcemarketPrice { get; set; } = 0m;
        /// <summary>
        /// 上架状态
        /// </summary>
        [Display(Name = "是否上架")]
        public bool IsGrounding { get; set; }
        /// <summary>
        /// 计价单位
        /// </summary>

        [Display(Name = "计价单位")]
        public string Unit { get; set; }
        /// <summary>
        ///重量
        /// </summary>
        [Required]
        [Display(Name = "重量")]
        public float SpceWeight { get; set; } = 0;

        public List<CommodityReviewsImageDto> ImageDtos { get; set; }
    }
}
